package cn.tedu.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("get")

public class GetConctroller {
    @RequestMapping("yi")
//    public String get(int id,String name){
//        return "参数id: "+id+" 参数name: "+name;
//    }
    public String get(Integer id,String name){
        return "参数id: "+id+" 参数name: "+name;
    }
    @RequestMapping("er/{id}/{name}/{color}/{price}")
    public String get2(@PathVariable Integer id, @PathVariable String name, @PathVariable String color,@PathVariable Double price){
        return  "参数id= "+id+" name="+name+" color="+color+" price="+price;
    }
}
